package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Dell
 * @since 2021-11-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "MemberRebate对象", description = "")
public class MemberRebate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "会员ID")
    private Long memberId;

    @ApiModelProperty(value = "积分")
    private Integer point;

    @ApiModelProperty(value = "金额")
    private BigDecimal money;

    @ApiModelProperty(value = "优惠券")
    private String coupon;

    @ApiModelProperty(value = "下级会员ID")
    private Long subMemberId;

    @ApiModelProperty(value = "下级商户Id")
    private Long subMerchantId;

    @ApiModelProperty(value = "事件")
    private Integer ruleId;

    @ApiModelProperty(value = "rule表event值")
    private Integer ruleEvent;

    @ApiModelProperty(value = "事件对应的关联表枚举值ride_order0 ride_marking1 member_recommendation2 merchant_member_order3 merchant_review4 recharge5  merchant_commodity_recommendation6")
    private Integer eventRefType;

    @ApiModelProperty(value = "事件对应的关联表的ID")
    private Long eventRefId;

    @ApiModelProperty(value = "返利详情")
    private String detail;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;


}
